//
//  AYSGuideView.m
//  AiYingShiProject
//
//  Created by lanou on 15/11/9.
//  Copyright (c) 2015年 李晓理. All rights reserved.
//

#import "AYSGuideView.h"

@implementation AYSGuideView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.contentSize = CGSizeMake(SCREEN_WIDTH * 3, SCREEN_HEIGHT);
        self.pagingEnabled = YES;
        self.showsHorizontalScrollIndicator = NO;
        
        NSArray *image = [NSArray arrayWithObjects:@"en1",@"en2",@"en3", nil];
        for (int i = 0; i < 3; i++)
        {
            UIImageView *imageView= [[UIImageView alloc] initWithFrame:CGRectMake(i * SCREEN_WIDTH, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
            imageView.image = [UIImage imageNamed:image[i]];
            [self addSubview:imageView];
        }
    }
    return self;
}

@end
